package com.ruoyi.task.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 任务表对象 sys_task
 * 
 * @author ruoyi
 * @date 2022-10-16
 */
public class SysTask extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Integer id;

    /** 小区名 */
    @Excel(name = "小区名")
    private String communityName;

    /** 楼栋ID */
    @Excel(name = "楼栋ID")
    private Integer buildingId;

    /** 楼栋名 */
    @Excel(name = "楼栋名")
    private String buildingName;

    /** 任务名 */
    @Excel(name = "任务名")
    private String taskName;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date beginTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 地址 */
    @Excel(name = "地址")
    private String address;

    /** 任务人数 */
    @Excel(name = "任务人数")
    private Integer taskNumber;

    /** 完成人数 */
    @Excel(name = "完成人数")
    private Integer finishNumber;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setCommunityName(String communityName) 
    {
        this.communityName = communityName;
    }

    public String getCommunityName() 
    {
        return communityName;
    }
    public void setBuildingId(Integer buildingId) 
    {
        this.buildingId = buildingId;
    }

    public Integer getBuildingId() 
    {
        return buildingId;
    }
    public void setBuildingName(String buildingName) 
    {
        this.buildingName = buildingName;
    }

    public String getBuildingName() 
    {
        return buildingName;
    }
    public void setTaskName(String taskName) 
    {
        this.taskName = taskName;
    }

    public String getTaskName() 
    {
        return taskName;
    }
    public void setBeginTime(Date beginTime) 
    {
        this.beginTime = beginTime;
    }

    public Date getBeginTime() 
    {
        return beginTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setTaskNumber(Integer taskNumber) 
    {
        this.taskNumber = taskNumber;
    }

    public Integer getTaskNumber() 
    {
        return taskNumber;
    }
    public void setFinishNumber(Integer finishNumber) 
    {
        this.finishNumber = finishNumber;
    }

    public Integer getFinishNumber() 
    {
        return finishNumber;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("communityName", getCommunityName())
            .append("buildingId", getBuildingId())
            .append("buildingName", getBuildingName())
            .append("taskName", getTaskName())
            .append("beginTime", getBeginTime())
            .append("endTime", getEndTime())
            .append("address", getAddress())
            .append("taskNumber", getTaskNumber())
            .append("finishNumber", getFinishNumber())
            .toString();
    }
}
